package com.javaclimb.music.controller;

import com.javaclimb.music.po.SongList;
import com.javaclimb.music.service.SongListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SongListController {
    @Autowired
    private SongListService service;

    @RequestMapping(value = "/getSongListAll",method = RequestMethod.POST)
    public List<SongList> getSongListAll() {
        return service.getSongListAll();
    }
}
